import resource from 'utils/resource';
import User from 'models/User';

export default resource('user', {
  *index(next){
    yield User.findAll().then(user => {
      this.body = user;
    })
  }
})
